package com.lottery.utils;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.ApplicationListener;
import org.springframework.context.event.ContextRefreshedEvent;
import org.springframework.stereotype.Component;

@Component
public class CheckOnlieUser implements ApplicationListener<ContextRefreshedEvent> {

	// private static OnlineScanThread onlineScanThread = new
	// OnlineScanThread();
	private static final Logger logger = LoggerFactory.getLogger(CheckOnlieUser.class);

	@Override
	public void onApplicationEvent(ContextRefreshedEvent arg0) {
		// TODO Auto-generated method stub
		//logger.debug("************onApplicationEvent start************");
		OnlineScanThread onlineScanThread = new OnlineScanThread();
		onlineScanThread.start();

		DeleteServerMsgThread deleteServerMsgThread = new DeleteServerMsgThread();
		deleteServerMsgThread.start();
	}
}